package cn.home.sysmanagement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.home.common.annotation.Excel;
import cn.home.common.core.domain.BaseEntity;

/**
 * 操作日志对象 home_log
 * 
 * @author homedoctor
 * @date 2025-04-09
 */
public class HomeLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 操作人(联查) */
    @Excel(name = "操作人(联查)")
    private String operUser;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operTime;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String operIp;

    /** 操作模块 */
    @Excel(name = "操作模块")
    private String operModel;

    /** 操作详情 */
    @Excel(name = "操作详情")
    private String operInfo;

    /** 逻辑删除：0未删除 1删除 */
    @Excel(name = "逻辑删除：0未删除 1删除")
    private Long del;

    /** 扩展1 */
    private String exp1;

    /** 扩展2 */
    private String exp2;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOperUser(String operUser) 
    {
        this.operUser = operUser;
    }

    public String getOperUser() 
    {
        return operUser;
    }

    public void setOperTime(Date operTime) 
    {
        this.operTime = operTime;
    }

    public Date getOperTime() 
    {
        return operTime;
    }

    public void setOperIp(String operIp) 
    {
        this.operIp = operIp;
    }

    public String getOperIp() 
    {
        return operIp;
    }

    public void setOperModel(String operModel) 
    {
        this.operModel = operModel;
    }

    public String getOperModel() 
    {
        return operModel;
    }

    public void setOperInfo(String operInfo) 
    {
        this.operInfo = operInfo;
    }

    public String getOperInfo() 
    {
        return operInfo;
    }

    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    public void setExp1(String exp1) 
    {
        this.exp1 = exp1;
    }

    public String getExp1() 
    {
        return exp1;
    }

    public void setExp2(String exp2) 
    {
        this.exp2 = exp2;
    }

    public String getExp2() 
    {
        return exp2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("operUser", getOperUser())
            .append("operTime", getOperTime())
            .append("operIp", getOperIp())
            .append("operModel", getOperModel())
            .append("operInfo", getOperInfo())
            .append("del", getDel())
            .append("exp1", getExp1())
            .append("exp2", getExp2())
            .toString();
    }
}
